Ext.define('ZO0.view.Customer', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.customer',

    title: 'Customer',
    store: 'Customer',

    loadMask: true,
    frame: true,
    columnLines: true,

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            height: 600,
            viewConfig: { stripeRows: true },
            columns: [
                { xtype: 'rownumberer' },
                { xtype: 'gridcolumn', header: 'Customer ID', dataIndex: 'id', width: 100 },
                { xtype: 'gridcolumn', header: 'Email',  dataIndex: 'email', width: 300, align: 'right', sortable: false, menuDisabled: true }
            ],
            listeners: {
                render: function(grid) {
                    grid.getStore().load();
                }
            }
        });
        me.callParent(arguments);
    }
});
